<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>作业章节老师批阅列表</title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css"/>
		<link rel="stylesheet" href="../../css/base.css">

	
		<link rel="stylesheet" href="../../css/aui.css">
		<link rel="stylesheet" href="../../css/personal.css">
		<style>
			html {
				background: #FFFFFF;
			}
			body {
				width: 100%;
				background: #FFFFFF;
				margin: 0px;
			}
.win_bar_bot1 {
				width: 100%;
				height: 44px;
				position: absolute;
				top: 44px;
			}
			.top_bar1 {
				width: 100%;
				height: 40px;
				display: -webkit-box;
			}
			.top_bar_center1{
				width: 100%;
				padding: 10px;
				height: 25px;
			}
			.bar_zw1 {
				width: 75%;
				height: 18px;
			}
			.bar_td1 {
				width: 100%;
				height: 18px;
				display: -webkit-box;
				line-height: 18px;
				text-align: -webkit-center;
				-webkit-appearance: none !important;
				-moz-appearance: none !important;
				-webkit-border-radius: 0;
				-webkit-appearance: listbox;
				background: #fff url('') no-repeat 98% center;
			}
			.bar1 {
				width: 25%;
				height: 18px;
				border-style: solid;
				border-width: 0px 0px 0px 1px;
				border-color: #d9d9d9;
				background: #fff url('') no-repeat 98% center;
			}
			.bar_text1{
				font-size: 15px;
				text-align: center;
				padding-top: 2px;
				display: -webkit-inline-box;
				-webkit-margin-before: 0em;
				-webkit-margin-after: 0em;
				-webkit-margin-start: 0px;
				-webkit-margin-end: 0px;
				padding-right: 6px;
			}
			tr {
				width: 100%;
				height: 35%;
			}
			table {
				width: 100%;
				height: 35%;
				position: inherit;
				margin-top: 10px;
				margin-bottom: 10px;
				border-spacing: 0px;
			}
			.border_right{
			border-right: 1px solid #FFFFFF;
		border-left: 1px solid #FFFFFF;
			}
		.top_bar {
				background: #18b4ed;
				width: 100%;
				height: 40px;
				display: -webkit-box;
			}
			.top_bar_center {
				width: 100%;
				padding: 10px;
				height: 25px;
			}
			.bar_zw {
				width: 75%;
				height: 18px;
			}
			.bar_td {
				width: 100%;
				height: 18px;
				display: -webkit-box;
				line-height: 18px;
				text-align: -webkit-center;
				-webkit-appearance: none !important;
				-moz-appearance: none !important;
				-webkit-border-radius: 0;
				-webkit-appearance: listbox;
				/*background: #fff url('') no-repeat 98% center;*/
			}
			.bar {
				width: 33.3%;
				height: 18px;
				border-style: solid;
				border-width: 0px 0px 0px 1px;
				border-color: #FFFFFF;
			}
			.bar_one {
				width: 33.3%;
				height: 18px;
				border-style: solid;
				border-width: 0px 0px 0px 0px;
				border-color: #FFFFFF;
			}
			.bar_text {
				color: #FFFFFF;
				font-size: 16px;
				text-align: center;
				vertical-align: middle;
				display: -webkit-inline-box;
				-webkit-margin-before: 0em;
				-webkit-margin-after: 0em;
				-webkit-margin-start: 0px;
				-webkit-margin-end: 0px;
			}
			.tr_class {
				width: 100%;
				height: 44px;
			}
			.table_class {
				background: #7cd0ee;
				width: 100%;
				height: 40px;
				position: inherit;
				margin: auto;
				border-spacing: 0px;
			}
					.place_line {
				position: absolute;
				top: 106px;
				width: 100%;
				height: 5px;
				background: #f0f0f0
			}
		</style>
	</head>
	<body>
	  <div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar">
			<a class="base_left_item" href="#" onclick="back()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span>作业管理</span>
			<a class="base_right_item base_hide_item"   id="bewrite" onclick="openbewrite()">描述</a>
		</div>
		<div id="mian" style="margin-top: 66px">	
			<div class="win_bar_bot">
			<div class="top_bar1">
				<table>
					<tr>
						<td class="bar_zw1">
						<div class="bar_td1" onclick="check_type(0)">
							<p class="bar_text1" id="type">
								班级选择
							</p>
						</div></td>
						<td class="bar1">
						<div class="bar_td"1 onclick="check_type(1)">
							<p class="bar_text1" id="qu_fx">
								全部
							</p>
						</div></td>
					</tr>
				</table>
			</div>
		</div>
			<div class="place_line"></div>
			<table  class="table_class">
				<tr class="tr_class">
					<td class="bar_one">
					<div class="bar_td" >
						<p class="bar_text" id="qu_fx">
							姓名
						</p>
					</div></td>
					<td class="bar">
					<div class="bar_td" >
						<p class="bar_text" id="qu_fx">
							得分
						</p>
					</div></td>
					<td class="bar">
					<div class="bar_td" >
						<p class="bar_text" id="qu_fx">
							状态
						</p>
					</div></td>
				</tr>
			</table>
		
		</div>
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script src="../../script/common.js"></script>
	<script type="text/javascript">
	var pageParam;
	var markisshow = false;
	
		var gder = 0;//0班级  1：类型
		apiready = function() {
			setupSubframe();
			setmask();
		
				sendBuriedNotifi('0', '作业章节老师批阅列表', '065');
			
		}
		function sendBuriedNotifi(busionessid, pagetype, pagetypeid) {
			var userinfo = {
				uid : $api.getStorage('cfnetppuid'),
				jid : $api.getStorage('cfnetppjxid'),
				uname : $api.getStorage('cfnetppusername'),
				cid : api.pageParam.cid,
				pid : api.pageParam.pid,
				vid : api.pageParam.vid
			}
			var data = {
				busionessid : busionessid,
				pagetype : pagetype,
				pagetypeid : pagetypeid,
				sourceurl : api.pageParam.sourceurl,
				sourcetitle : api.pageParam.sourcetitle,
				accesspageurl : window.location.pathname,
				accesspagetitle : document.title,
				userinfo : userinfo
			}
			SendBehaviorTrajectoriesNotifi_Study(data);
		}

		function setupSubframe() {

	
//			$('#nav_title').text(htmlspecialchars_decode(api.pageParam.title));
	
			var y = $('.base_navigation_bar').height()+$('#mian').height()+22;
			api.openFrame({
				name : 'Teacher_HomeWorkMarkingManage_StudentList',
				url : 'Teacher_HomeWorkMarkingManage_StudentList.html',
				rect : {
					x : 0,
					y : y,
					w : 'auto',
					h : 'auto'
				},
				pageParam :api.pageParam,
				bounces : false,
				vScrollBarEnabled : true,
				hScrollBarEnabled : false
			});
		}
		function openbewrite(){
		 api.openWin({useWKWebView:true,
		    name: 'Student_Free_bewrite',
		    url: 'Student_Free_bewrite.html',
		    pageParam: pageParam
		  });
		}
		function setmask(){
			$api.setStorage("lx", "");
			$api.setStorage("fx", "");
			api.addEventListener({
				name : 'close_mask'
			}, function(ret, err) {
				//coding...
				markisshow = false;
				api.closeFrame({
					name : 'Teacher_TestMarkingManage_Typelist'
				});
			});
			//分类
			api.addEventListener({
				name : 'item_point'
			}, function(ret, err) {
				if (ret) {
					var data = ret.value.data;
					var type = ret.value.type;
					var id = data.id;
					var name = data.name;
//					alert(JSON.stringify(ret));
					if (type == 0) {//类型
						id = data.id;
						$api.setStorage("fx", "全部");
						if (id == 2) {//专项认证
							gder = 1;
							$("#type").html(name);
							$("#qu_fx").html("全部");
						} else {
							gder = 0;
							$("#type").html(name);
							$("#qu_fx").html("全部");
						}
					} else if (type == 1) {//方向
						$("#qu_fx").html(name);
					}
				}
			});
		}
			//下拉列表
		function check_type(type) {
			if (gder == 0) {
				if (markisshow) {
					api.sendEvent({
						name : 'mark_close'
					});
					markisshow = false;
					api.closeFrame({
						name : 'Teacher_TestMarkingManage_Typelist'
					});
				} else {
					api.sendEvent({
						name : 'mark_show'
					});
					markisshow = true;
					var y = $('.base_navigation_bar').height()+22;
					var h = api.winHeight - y - 52 - 45;
					api.openFrame({
						name : 'Teacher_TestMarkingManage_Typelist',
						url : 'Teacher_TestMarkingManage_Typelist.html',
						rect : {
							x : 0,
							y : y + 45,
							w : 'auto',
							h : 200
						},
						pageParam : {
							type : type,
							pid : api.pageParam.pid,
							type1 :2,
						}
					});
				}
			} else {
				if (type != 0) {
					api.toast({
						msg : '暂无班级数据！！'
					});
				} else {
					if (markisshow) {
						api.sendEvent({
							name : 'mark_close'
						});
						markisshow = false;
						api.closeFrame({
							name : 'Teacher_TestMarkingManage_Typelist'
						});
					} else {
						api.sendEvent({
							name : 'mark_show'
						});
						markisshow = true;
						var y = $('.base_navigation_bar').height();
						var h = api.winHeight - y - 52 - 45;
						api.openFrame({
							name : 'Teacher_TestMarkingManage_Typelist',
							url : 'Teacher_TestMarkingManage_Typelist.html',
							rect : {
								x : 0,
								y : y + 45,
								w : 'auto',
								h : 200
							},
							pageParam : {
								type : type,
								pid : api.pageParam.pid,
								
							}
						});
					}
				}
			}
		}
		function back(){
		sendBuriedNotifi('1', '作业章节老师批阅列表', '065');
		api.closeWin({
        });
		}
	</script>
</html>